<%inherit file="/autohandler"/> 
<h2>
Playlists
</h2>

<table>
% for p in c.playlists:
<tr>
<td>${ h.link_to(p['name'], h.url(controller="playlist", action="displayplaylist", id=p['index'], name=p['name']))}</td>
${ h.form(h.url(action='deleteplaylist'), multipart=True) }
<td>
${ h.submit('delete', 'Delete') }
</td>
${ h.hidden('playlistname', value=p['name']) }
${ h.end_form() } 
</tr>
% endfor
<table>

<hr>
Add new playlist:
${ h.form(h.url(controller='playlist', action='addplaylist'), multipart=True) } 
<input type="text" name="newplaylist"/>
<input type="submit" value="Add" />
${ h.end_form() } 

